001 /* 002 * InvalidScoringMatrixException.java 003 * 004 * Copyright 2003 Sergio Anibal de Carvalho Junior 005 * 006 * This file is part of NeoBio. 007 * 008 * NeoBio is free software; you can redistribute it and/or modify it under the terms of 009 * the GNU General Public License as published by the Free Software Foundation; either 010 * version 2 of the License, or (at your option) any later version. 011 * 012 * NeoBio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 013 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 014 * PURPOSE. See the GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License along with NeoBio; 017 * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, 018 * Boston, MA 02111-1307, USA. 019 * 020 * Proper attribution of the author as the source of the software would be appreciated. 021 * 022 * Sergio Anibal de Carvalho Junior mailto:sergioanibaljr@users.sourceforge.net 023 * Department of Computer Science http://www.dcs.kcl.ac.uk 024 * King's College London, UK http://www.kcl.ac.uk 025 * 026 * Please visit http://neobio.sourceforge.net 027 * 028 * This project was supervised by Professor Maxime Crochemore. 029 * 030 */ 031 032 package neobio.alignment; 033 034 /** 035 * Signals that the substitution matrix does not comply with the specification (see 036 * {@linkplain ScoringMatrix} for details). 037 * 038 * @author Sergio A. de Carvalho Jr. 039 * @see ScoringMatrix 040 */ 041 public class InvalidScoringMatrixException extends Exception 042 { 043 /** 044 * Constructs an <CODE>InvalidScoringMatrixException</CODE> with null as its error 045 * detail message. 046 */ 047 public InvalidScoringMatrixException () 048 { 049 super(); 050 } 051 052 /** 053 * Constructs an <CODE>InvalidScoringMatrixException</CODE> with the specified detail 054 * message. 055 * 056 * @param message an error message 057 */ 058 public InvalidScoringMatrixException (String message) 059 { 060 super(message); 061 } 062 063 /** 064 * Constructs an <CODE>InvalidScoringMatrixException</CODE> with the specified cause 065 * (and a detail message that typically contains the class and detail message of 066 * cause). 067 * 068 * @param cause a cause 069 */ 070 public InvalidScoringMatrixException (Throwable cause) 071 { 072 super(cause); 073 } 074 075 /** 076 * Constructs an <CODE>InvalidScoringMatrixException</CODE> with the specified detail 077 * message and cause. 078 * 079 * @param message an error message 080 * @param cause a cause 081 */ 082 public InvalidScoringMatrixException (String message, Throwable cause) 083 { 084 super(message, cause); 085 } 086 }